<!-- <template>
  <div id="app">
    <img alt="Vue logo" src="./assets/logo.png">
    <HelloWorld msg="Welcome to Your Vue.js App"/>
  </div>
</template>

<script>
import HelloWorld from './components/HelloWorld.vue'

export default {
  name: 'App',
  components: {
    HelloWorld
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style> -->
<template>
  <div id="root">
     <h1 v-text="message" class="hello"></h1>
     <School></School>
     <Student></Student>
   </div>
</template>

<script>
import School from "./components/School"
import Student from "./components/Student.vue";
//汇总组件
export default {
   name:"App",
   data:function(){  //组件的数据来源 1.在data中指定的数据 2.通过外部传入给组件使用的数据
      return {
        message:"武汉科技大学",
      }
   },
   components:{
    School,
    Student
   }
}
</script>

<style lang="css" scoped>
/*在App中使用 scoped限制后，在子组件中该样式将不能被使用 */
.hello{
  font-size: 20px;
  color: red;
}
</style>

